package com.microHR.hr.mapper;

import com.microHR.hr.model.HrRole;
import com.microHR.hr.model.HrRoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface HrRoleMapper {
    long countByExample(HrRoleExample example);

    int deleteByExample(HrRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(HrRole row);

    int insertSelective(HrRole row);

    List<HrRole> selectByExample(HrRoleExample example);

    HrRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") HrRole row, @Param("example") HrRoleExample example);

    int updateByExample(@Param("row") HrRole row, @Param("example") HrRoleExample example);

    int updateByPrimaryKeySelective(HrRole row);

    int updateByPrimaryKey(HrRole row);

    void deleteByHrid(Integer hrid);

    int addRole(Integer hrid, Integer[] rids);
}